package com.onpositive.datacollection.editor;

import java.util.Arrays;

import com.onpositive.datamap.core.impl.DataCollection;

public class PropertiesView extends CollectionView {

	public PropertiesView() {
		super("properties.dlf");
		setSelectionProvider("d");
	}
	
	public Object getData(){
		DataCollection dataCollection = (DataCollection)DataCollectionAcess.collection();
		if (dataCollection==null){
			return null;
		}
		return Arrays.asList(dataCollection.getProperties());		
	}

	@Override
	protected void doRefresh() {
		getBinding("Data").refresh();
	}
}